package com.proj.bean;

public class User {
    private int id;
    private String name;
    private String nickname;
    private String password;
    private String telephone;
    private String imgurl;
    private int userlevel;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", nickname='" + nickname + '\'' +
                ", password='" + password + '\'' +
                ", telephone='" + telephone + '\'' +
                ", imgurl='" + imgurl + '\'' +
                ", userlevel=" + userlevel +
                '}';
    }

    public User(int id, String name, String nickname, String password, String telephone, String imgurl, int userlevel) {
        this.id = id;
        this.name = name;
        this.nickname = nickname;
        this.password = password;
        this.telephone = telephone;
        this.imgurl = imgurl;
        this.userlevel = userlevel;
    }

    public User() {
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public int getUserlevel() {
        return userlevel;
    }

    public void setUserlevel(int userlevel) {
        this.userlevel = userlevel;
    }
}
